package com.center.biz.impl;

import com.center.api.model.SysLoginLog;
import com.center.api.remote.RemoteSysLoginLogService;
import com.center.biz.dao.SysLoginLogMapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service(version = "1.0",interfaceClass = RemoteSysLoginLogService.class)
public class RemoteSysLoginLogServiceImpl implements RemoteSysLoginLogService{

    @Autowired
    private SysLoginLogMapper sysLoginLogMapper;

    @Override
    public int save(SysLoginLog sysLoginLog) {
        return sysLoginLogMapper.insertSelective(sysLoginLog);
    }

    @Override
    public int update(SysLoginLog sysLoginLog) {
        return sysLoginLogMapper.updateByPrimaryKeySelective(sysLoginLog);
    }

    @Override
    public int delete(int id) {
        return sysLoginLogMapper.deleteByPrimaryKey(id);
    }

    @Override
    public List<SysLoginLog> select(SysLoginLog sysLoginLog) {
        return null;
    }

    @Override
    public SysLoginLog getById(int id) {
        return sysLoginLogMapper.selectByPrimaryKey(id);
    }
}
